const app = getApp()

Page({
  data: {
    arr: [
      [1, 2, 3],
      [1, 2, 3, 5],
      [1, 2, 3, 4, 6],
      [1, 2, 3],
    ],
    list: [
      {
        name: '张三',
        age: 18,
        sex: 3
      },
      {
        name: '李四',
        age: 14,
        sex: 3
      },
      {
        name: '王五',
        age: 9,
        sex: 0
      },
      {
        name: '王麻子',
        age: 28,
        sex: 0
      },
      {
        name: '张全蛋',
        age: 38,
        sex: 1
      },
    ],
    msg: 'hello weapp',
    condition: false
  },
  onLoad() {
    console.log(app.globalData)
    console.log(app.remind())
    /*setInterval(function () {
      console.log(123)
    }, 1000)*/
  },
  onShow() {},
  onReady() {},
  onPullDownRefresh() {
    console.log('在下拉')
  },
  onReachBottom() {
    console.log('上拉')
  },
  onShareAppMessage() {
    return {
      title: '自定义转发标题',
      imageUrl: 'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png'
    }
  },
  onShareTimeline() {

  },
  onPageScroll(scrollTop) {
    // console.log(scrollTop)
  },
  onTabItemTap() {
    console.log('tab被点击了')
  },
  onClick() {
    console.log('123')
    console.log(getCurrentPages())
  }
})
